package chapter2.No2_2_synchronized同步语句块.i静态同步方法与synchronized_class代码块.demo1;

/**
 * *：静态同步方法
 * Created by Administrator on 2016/11/12.
 */
public class Main {

    public static void main(String[] args) {
        ThreadA a = new ThreadA();
        a.setName("a");
        ThreadB b = new ThreadB();
        b.setName("b");

        a.start();
        b.start();

    }

}
